package com.xbongbong.saas.domain.entity;

import com.alibaba.fastjson.JSONObject;
import lombok.Getter;
import lombok.Setter;

/**
 * @author haibin.zhang
 * @version v1.0
 * @date 2019/9/30 10:22
 * @since v1.0
 */
@Getter
@Setter
public class BusinessProductEntity extends BusinessUnitProductEntity {
    //关联产品表id
    private Long id;
    //产品id
    private Long productId;
    //产品数量
    private Double productNum;
    //产品成本
    private Double cost;
    //产品单位
    private String productUnit;
    // 产品单价
    private Double price;
    // 产品备注
    private String memo;
    //折扣
    private Double discount;
    // 源单产品行id
    private Long refProductId;
    // 源单编号
    private String sheetNo;
    // 源单id
    private Long refSheetId;
    // 产品名称
    private String productName;
    // 总数与已出或已入的差值
    private Double surplusNum;
    // 退货退款入库专用
    private Double refundSurplusNum;
    //合同历史单价，销售出库专用
    private Double historicalPrice;
    /**
     * 批次（用于查询该批次产品数量）
     */
    private String batch;
    /**
     * 生产日期
     */
    private Long produceDate;
    /**
     * 保质期
     */
    private Long guaranteePeriod;

    private JSONObject data;

    private Long warehouseId;
}
